package com.yf.controller;

import com.yf.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/code")
@RestController
public class IndexController {

    @Autowired
    private CodeService codeService;

    @GetMapping("/hello")
    public String index(){
        return codeService.hello();
    }

}
